package com.david.auth.dao;

import java.util.List;

import com.david.auth.pojo.entity.AuthClientEntity;
import org.apache.ibatis.annotations.Param;

import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 


/**
 * <p>
 * 授权客户端管理 Mapper 接口
 * </p>
 *
 * @author David
 * @Date 2022-04-18 15:26:46
 */
@Mapper
public interface AuthClientMapper extends BaseMapper<AuthClientEntity> {
	
	/**
	 * 统计
	 * @param query
	 * @return
	 */
	Long findCount(@Param(value="query") AuthClientEntity query);
	
    /**
     * 分页
     * @param query
     * @param page
     * @return
     */
	Page<AuthClientEntity> findPage(@Param(value="query") AuthClientEntity query, Page<AuthClientEntity> page);
	
	/**
	 * 列表
	 * @param query
	 * @return
	 */
	List<AuthClientEntity> findList(@Param(value="query") AuthClientEntity query);

    /**
     * 根据id动态更新传入了值的字段
     * @param entity
     * @return
    */
    int updateByPrimaryKeySelective(@Param(value="entity") AuthClientEntity entity);
}
